home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / compress / gnucpio.zip / CONFIGUR.IN < prev    next >
Text File  |  1995-12-20  |  2KB  |  68 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(cpio.h)
  3. PROGS="cpio"
  4. AC_SUBST(PROGS)dnl
  5. AC_PROG_CC
  6. AC_PROG_CPP
  7. AC_PROG_GCC_TRADITIONAL
  8. AC_PROG_INSTALL
  9. AC_AIX
  10. AC_MINIX
  11. AC_ISC_POSIX
  12. AC_TYPE_SIGNAL
  13. AC_HEADER_MAJOR
  14.  
  15. AC_CHECKING(for remote tape and socket header files)
  16. AC_CHECK_HEADER(sys/mtio.h,
  17. [AC_DEFINE(HAVE_SYS_MTIO_H)
  18. PROGS="$PROGS mt"
  19. AC_TRY_CPP([#include <sgtty.h>
  20. #include <sys/socket.h>], PROGS="$PROGS rmt")])
  21.  
  22. AC_CHECKING(for remote shell)
  23. if test -f /usr/ucb/rsh || test -f /usr/bin/remsh || test -f /usr/bin/rsh ||
  24.   test -f /usr/bsd/rsh || test -f /usr/bin/nsh; then
  25.   RTAPELIB=rtapelib.o
  26. else
  27.   AC_CHECK_HEADER(netdb.h, AC_DEFINE(HAVE_NETDB_H) RTAPELIB=rtapelib.o,
  28.     AC_DEFINE(NO_REMOTE))
  29. fi
  30. AC_SUBST(RTAPELIB)dnl
  31.  
  32. AC_C_CONST
  33. AC_TYPE_UID_T
  34. AC_HEADER_STDC
  35. AC_CHECK_HEADERS(unistd.h string.h fcntl.h sys/io/trioctl.h)
  36. AC_REPLACE_FUNCS(bcopy mkdir strdup)
  37.  
  38. AC_MSG_CHECKING(for utime.h)
  39. AC_TRY_COMPILE([#include <sys/types.h>
  40. #include <utime.h>], [struct utimbuf foo],
  41.   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_UTIME_H)], [AC_MSG_RESULT(no)])
  42.  
  43. dnl Checks for fnmatch
  44. have_fnmatch=no
  45. AC_MSG_CHECKING(for working fnmatch)
  46. dnl Some versions of Soalris have a fnmatch() function, but it doesn't work!
  47. dnl So we run a test program.  If we're cross-compiling, do it th old way.
  48. AC_TRY_RUN([
  49. main() {
  50. if (fnmatch ("a*", "abc", 0) == 0) return 0;
  51. else return 1; }],
  52. have_fnmatch=yes, have_fnmatch=no, have_fnmatch=no)
  53. if test $have_fnmatch = yes ; then
  54.   AC_MSG_RESULT(yes)
  55.   FNMATCH=""
  56. else
  57.   AC_MSG_RESULT(no)
  58.   FNMATCH="fnmatch.o"
  59. fi
  60. AC_SUBST(FNMATCH)
  61. AC_CHECK_FUNCS(strerror lchown)
  62. AC_FUNC_VPRINTF
  63. AC_FUNC_ALLOCA
  64. AC_HEADER_DIRENT
  65. AC_CHECK_LIB(nsl, gethostname, [LIBS="$LIBS -lnsl"])
  66. AC_CHECK_LIB(socket, setsockopt, [LIBS="$LIBS -lsocket"])
  67. AC_OUTPUT(Makefile)
  68.